<?php 
include_once($_SERVER["DOCUMENT_ROOT"]."/bolsa_trabajo/util/session_control_admon.php");
include_once($_SERVER["DOCUMENT_ROOT"]."/bolsa_trabajo/dto/aspirante_dto.php");
include_once($_SERVER["DOCUMENT_ROOT"]."/bolsa_trabajo/util/session_helper.php");



?>


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href="../css/bootstrap.min3.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="screen"
	href="../css/bootstrap3-datetimepicker.css" />
<link
	href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css"
	rel="stylesheet">

<script type="text/javascript"
	src="http://ajax.googleapis.com/
ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript"
	src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>

<script src="../js/bootstrap.min3.js"></script>
<script src="../js/bootstrap3-datepicker.js"></script>


</head>

<body>

	<div class="container">
	<br/>
		<div class="navbar-collapse collapse">
			<ul class="nav nav-pills pull-right">
				<li class="active"><a href="<?php echo $home?>">Inicio</a></li>
				<li><a href="#">Ayuda</a></li>
				<li><a href="#">Cerrar Sesion</a></li>
				<li><a href="#">Acerca de</a></li>
			</ul>
			<h1 class="text-primary">Bolsa de Trabajo</h1>

		</div>
	</div>
	<div class="container">

		<div class="span10 offset1">
		

			<form class="form-horizontal" action="../action/action_buscar_carreras.php"
				method="post" enctype="multipart/form-data">

				<div class="row">
					<?php 
					

					if($msgExito != null){
					echo "<div class='alert alert-info'> " .$msgExito ." </div>";
				}

				if($msgError != null){
					echo "<div class='alert alert-warning'> " .$msgError ." </div>";
				}
					
					

				SessionHelper::clearMsg();
					
				?>

				</div>



				<div class="panel panel-default">
					<div class="panel-heading"> <h4>Catalogo de Carrreras</h4></div>
					<div class="panel-body">
						<div class='row'>
							<div class="col-md-12">
								<label class="control-label">Descripcion carreras</label> 
								<input name="descripcionCarrrera" type="text" class="form-control" placeholder="Introducir carrera para busqueda">
							</div>

								</div>
													<div class="row">
							<div class="col-md-offset-4 col-md-8">

								<a class="btn btn-default navbar-btn" href="<?php echo $home?>">Regresar</a>
								<button type="submit" class="btn btn-primary navbar-btn"
									name="action" value="load">Buscar</button>
								<a class="btn btn-default navbar-btn" href="../catalogos/register_carreras 
								.php"> 
									<span class='glyphicon glyphicon-plus'></span> Nuevo Carrera
								</a>
							</div>

						</div>
						
					</div>
					
					<div class="table-responsive"> 
					<table class="table table-condensed table-hover">
					 
					<?php 
						if (isset($_SESSION['resultadoBusqueda'])) {
					
							$res = $_SESSION['resultadoBusqueda'];
							echo $res;
							unset($_SESSION['resultadoBusqueda']);
							}
						?>
					</table>
					</div>
				</div>
			</form>
		</div>

		<div class="span10 offset1"></div>

	</div>
	<!-- /container -->
</body>
</html>
